home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Borland / Borland C++ V5.02 / CLASSSRC.PAK / BUILD.BAT < prev    next >
DOS Batch File  |  1997-05-06  |  2KB  |  73 lines

  1. :// -------------------------------------------------------------------------
  2. :// Borland International Data Structures Library
  3. :// Copyright (c) 1991, 1996 by Borland International, All Rights Reserved
  4. ://
  5. :// Simple MAKEFILE illustrating the command line options to rebuild
  6. :// the Libraries
  7. :// 
  8. :// NOTE : The 'BIDSOPTS' macro defined below can be used to set additional
  9. ://        options. For example, if you want to rebuild the libraries
  10. ://        with DIAGNOSTICS and DEBUG information enabled, you can 
  11. ://                set BIDSOPTS=-DDIAGS -DDEBUG
  12. :// -------------------------------------------------------------------------
  13. @echo off
  14.  
  15. set BIDSNAME=BIDS
  16. set BIDSDLLNAME=BDS
  17. set BIDSVER=501
  18. set BIDSOPTS=
  19.  
  20. :// -------------------------------------------------------------------------
  21. ://  Build 16-bit libraries
  22. :// -------------------------------------------------------------------------
  23.   echo.
  24.   echo Building 16-bit static link libraries
  25.   echo.
  26.   make -DDOS MODEL=s %BIDSOPTS%
  27.   if errorlevel 1 goto Failure
  28.  
  29.   make -DDOS MODEL=c %BIDSOPTS%
  30.   if errorlevel 1 goto Failure
  31.  
  32.   make -DDOS MODEL=m %BIDSOPTS%
  33.   if errorlevel 1 goto Failure
  34.  
  35.   make -DDOS MODEL=l %BIDSOPTS%
  36.   if errorlevel 1 goto Failure
  37.  
  38.   make -DDOS MODEL=h %BIDSOPTS%
  39.   if errorlevel 1 goto Failure
  40.  
  41.   make -DDOS -DDLL %BIDSOPTS%
  42.   if errorlevel 1 goto Failure
  43.  
  44.  
  45.  
  46. :// -------------------------------------------------------------------------
  47. ://  Build 32-bit libraries
  48. :// -------------------------------------------------------------------------
  49.   echo.
  50.   echo Building 32-bit static link libraries
  51.   echo.
  52.   make -DWIN32 %BIDSOPTS%
  53.   if errorlevel 1 goto Failure
  54.  
  55.   echo.
  56.   echo Building 32-bit DLLs
  57.   echo.
  58.   make -DWIN32 -DDLL %BIDSOPTS%
  59.   if errorlevel 1 goto Failure
  60.  
  61.   echo.
  62.   echo Building 32-bit multithreaded static link libraries
  63.   echo.
  64.   make WIN32=1 MT=1 %BIDSOPTS%
  65.   if errorlevel 1 goto Failure
  66.  
  67.   echo.
  68.   echo  Building 32-bit multithreaded DLL
  69.   echo.
  70.   make -DWIN32 -DDLL -DMT %BIDSOPTS%
  71.   if errorlevel 1 goto Failure
  72.  
  73.